<!DOCTYPE html>
<html lang="en"xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户登录界面</title>

    <!--  popper.min.js 用于弹窗、提示、下拉菜单 -->
    <script src="https://cdn.staticfile.org/popper.js/2.9.3/umd/popper.min.js"></script>
    <!-- 最新的 Bootstrap5 核心 JavaScript 文件 -->
    <link href="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.staticfile.org/twitter-bootstrap/5.1.1/js/bootstrap.bundle.min.js"></script>

</head>
<body>
<div class="deng">
<!--  用户登录form表单 -->
<form th:action="@{/login}"method="post">
<div class="mb-3">
<label for="username"class="form-label">用户名</label>
<input type="text"class="form-control"id="username"
name="username">

</div>
<div class="mb-3">
<label for="password"class="form-label">密码</label>
<input type="password"class="form-control"id="password"
name="password">
</div>
<div class="checkbox mb-3">
<label>
    <input type="checkbox"name="rememberme">记住我
</label>
</div>
<button type="submit"class="btn btn-primary">登录</button>
<p th:if="${param.error}">用户名或密码错误，登录失败！</p>
</form>
<p><span th:text="${#dates.createNow()}"></span></p>
</div>
</body>
<style>
    body{
       background-color: rgba(60, 63, 65);
    }
    .deng{
        height: 350px;
        width: 400px;
        margin: 10% auto;
        border: 1px solid blue;
        background-color: rgba(4, 172, 236);
    }
</style>
</html>